package com.qf.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.dto.AdminModule;
import com.qf.mapper.FunctionMapper;
import com.qf.vo.Function;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class FunctionService extends ServiceImpl<FunctionMapper, AdminModule> {

    @Transactional(readOnly = true)
    public List<Function> queryFunction(Long adminId) {

        //因为baseMaper类里面封装了所有单表查询的sql语句 这里就可以使用this.basemapper来调用

        return this.baseMapper.queryFunction(adminId);
    }

}
